package com.tuniu.agents.impl.train.logger;

import com.tuniu.agents.impl.train.enums.TrainAgentEnum;
import com.tuniu.agents.message.AgentLogger;
import com.tuniu.agents.util.I18nUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * train ticket agent
 * Generate intelligent analysis output for train ticket agent
 */
@Service(TrainAgentLoggingService.BEAN_NAME)
@Slf4j
public class TrainAgentLoggingService implements AgentLogger {

    public static final String BEAN_NAME = "trainAgentLoggingService";

    @Override
    public List<String> before(String conversationId, Object messages) {
        return List.of(I18nUtil.getMessage(conversationId,TrainAgentEnum.TRAIN_TICKET_AGENT.getBefore()));
    }

    @Override
    public List<String> after(String conversationId, Object messages, Object result) {
        return Collections.emptyList();
    }

}
